package org.dormi.learn.product.port.persist.event;

import org.dormi.learn.event.BaseEvent;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * dto - entity 之间的转换
 *
 * @author : dormi330
 * @version : 1.0
 */
@Mapper
interface EventConverter {

    EventConverter MAPPER = Mappers.getMapper(EventConverter.class);

    /* === eo -> dto === */
    /* === eo -> dto === */
    /* === eo -> dto === */
    BaseEvent toEO(BaseEventPO po);


    /* === dto -> eo === */
    /* === dto -> eo === */
    /* === dto -> eo === */
    BaseEventPO toPO(BaseEvent eo);

}

